﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
</head>
<body>

    <span class="Apple-style-span" 
        style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Simsun; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">
    <span class="Apple-style-span" 
        style="color: rgb(51, 51, 51); font-family: verdana, ����, Arial; font-size: 14px; line-height: 24px; ">
    <h2 style="margin-top: 10px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-weight: bold; color: rgb(0, 0, 0); font-size: 14px; font-family: Verdana; ">
        1.开发</h2>
    <p style="margin-top: 6px; margin-right: auto; margin-bottom: 6px; margin-left: auto; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; text-indent: 0px; line-height: 24px; font-size: 14px; font-family: Verdana; ">
        一般来说，如果使用Lesktop for 
        .Net来开发网站，解压源代码后直接在Lesktop/Lesktop.sln上开发即可，启动网站后（起始页为Developer.htm），新建一个桌面工程即可，然后用设计器设计界面即可，如图所示：</p>
    <p style="margin-top: 6px; margin-right: auto; margin-bottom: 6px; margin-left: auto; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; text-indent: 0px; line-height: 24px; font-size: 14px; font-family: Verdana; ">
        <img alt="" src="1.png" style="width: 630px; height: 480px" /></p>
    <p style="margin-top: 6px; margin-right: auto; margin-bottom: 6px; margin-left: auto; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; text-indent: 0px; line-height: 24px; font-size: 14px; font-family: Verdana; ">
        <span class="Apple-style-span" 
            style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Simsun; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium;">
        <span class="Apple-style-span" 
            style="color: rgb(51, 51, 51); font-family: verdana, ����, Arial; font-size: 14px; line-height: 24px;">
        <img alt="" src="2.png" style="width: 630px; height: 457px" /></span></span></p>
    <h2 style="margin-top: 10px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-weight: bold; color: rgb(0, 0, 0); font-size: 14px; font-family: Verdana; ">
        2.调试</h2>
    <p style="margin-top: 6px; margin-right: auto; margin-bottom: 6px; margin-left: auto; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; text-indent: 0px; line-height: 24px; font-size: 14px; font-family: Verdana; ">
        为了方便调试，您可以将正在开发的工程设为开发工具的启动项目，具体方法如下：在Developer.htm中找到以下代码：</p>
    <p style="margin-top: 6px; margin-right: auto; margin-bottom: 6px; margin-left: auto; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; text-indent: 0px; line-height: 24px; font-size: 14px; font-family: Verdana; ">
        <span class="Apple-style-span" 
            style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Simsun; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium;">
        <span class="Apple-style-span" 
            style="color: rgb(51, 51, 51); font-family: verdana, ����, Arial; font-size: 14px; line-height: 24px;">
        <img alt="" src="3.png" style="width: 482px; height: 75px" /></span></span></p>
    <p style="margin-top: 6px; margin-right: auto; margin-bottom: 6px; margin-left: auto; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; text-indent: 0px; line-height: 24px; font-size: 14px; font-family: Verdana; ">
        将Solution设置为你要启动的工程名称（即你<font color="#ff0000" 
            style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">新建工程时输入的路径</font>）。</p>
    <h2 style="margin-top: 10px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-weight: bold; color: rgb(0, 0, 0); font-size: 14px; font-family: Verdana; ">
        3.发布</h2>
    <p style="margin-top: 6px; margin-right: auto; margin-bottom: 6px; margin-left: auto; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; text-indent: 0px; line-height: 24px; font-size: 14px; font-family: Verdana; ">
        使用开发工具开发完毕后，点击保存，开发工具将为您生成目标代码（一个javascript文件，存放在System目录中），和Css文件(存放在Themes/Default中)。发布时，你必须将桌面工程设置为启动工程，具体方法如下：在index.htm中找到以下代码：</p>
    <p style="margin-top: 6px; margin-right: auto; margin-bottom: 6px; margin-left: auto; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; text-indent: 0px; line-height: 24px; font-size: 14px; font-family: Verdana; ">
        <img alt="" src="4.png" style="width: 374px; height: 75px" /></p>
    <p style="margin-top: 6px; margin-right: auto; margin-bottom: 6px; margin-left: auto; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; text-indent: 0px; line-height: 24px; font-size: 14px; font-family: Verdana; ">
        将Start设置为你要启动的程序，也就是你在<font color="#ff0000" 
            style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">新建工程时输入的路径+&quot;.js&quot;<span 
            class="Apple-converted-space">&nbsp;</span></font>，之后浏览index.htm即可，如图所示：</p>
    <p style="margin-top: 6px; margin-right: auto; margin-bottom: 6px; margin-left: auto; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; text-indent: 0px; line-height: 24px; font-size: 14px; font-family: Verdana; ">
        <img alt="" src="5.png" style="width: 618px; height: 554px" /></p>
    <h2 style="margin-top: 10px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-weight: bold; color: rgb(0, 0, 0); font-size: 14px; font-family: Verdana; ">
        4.清理</h2>
    <p style="margin-top: 6px; margin-right: auto; margin-bottom: 6px; margin-left: auto; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; text-indent: 0px; line-height: 24px; font-size: 14px; font-family: Verdana; ">
        部署好网站之后，开发工具就可以功成身退了，接下来就是将开发工具清理掉，具体方法如下：</p>
    <p style="margin-top: 6px; margin-right: auto; margin-bottom: 6px; margin-left: auto; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; text-indent: 0px; line-height: 24px; font-size: 14px; font-family: Verdana; ">
        <strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">
        (1)删除以下文件和文件夹：</strong></p>
    <p style="margin-top: 6px; margin-right: auto; margin-bottom: 6px; margin-left: auto; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; text-indent: 0px; line-height: 24px; font-size: 14px; font-family: Verdana; ">
        Developer.htm</p>
    <p style="margin-top: 6px; margin-right: auto; margin-bottom: 6px; margin-left: auto; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; text-indent: 0px; line-height: 24px; font-size: 14px; font-family: Verdana; ">
        System/Developer.js</p>
    <p style="margin-top: 6px; margin-right: auto; margin-bottom: 6px; margin-left: auto; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; text-indent: 0px; line-height: 24px; font-size: 14px; font-family: Verdana; ">
        System/Developer</p>
    <p style="margin-top: 6px; margin-right: auto; margin-bottom: 6px; margin-left: auto; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; text-indent: 0px; line-height: 24px; font-size: 14px; font-family: Verdana; ">
        App_Code/Lesktop.cs</p>
    <p style="margin-top: 6px; margin-right: auto; margin-bottom: 6px; margin-left: auto; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; text-indent: 0px; line-height: 24px; font-size: 14px; font-family: Verdana; ">
        <strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">
        (2)在web.config中找到以下代码并删除：</strong></p>
    <p style="margin-top: 6px; margin-right: auto; margin-bottom: 6px; margin-left: auto; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; text-indent: 0px; line-height: 24px; font-size: 14px; font-family: Verdana; ">
        <img alt="" src="6.png" style="width: 561px; height: 83px" /></p>
    <p style="margin-top: 6px; margin-right: auto; margin-bottom: 6px; margin-left: auto; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; text-indent: 0px; line-height: 24px; font-size: 14px; font-family: Verdana; ">
    </p>
    <h2 style="margin-top: 10px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-weight: bold; color: rgb(0, 0, 0); font-size: 14px; font-family: Verdana; ">
        5.示例</h2>
    <p style="margin-top: 6px; margin-right: auto; margin-bottom: 6px; margin-left: auto; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; text-indent: 0px; line-height: 24px; font-size: 14px; font-family: Verdana; ">
        源代码中已提供了一个示例，工程路径为Finance，直接打开Demo/Lesktop.sln即可。</p>
    <h2 style="margin-top: 10px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-weight: bold; color: rgb(0, 0, 0); font-size: 14px; font-family: Verdana; ">
        6.注意事项</h2>
    <p style="margin-top: 6px; margin-right: auto; margin-bottom: 6px; margin-left: auto; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; text-indent: 0px; line-height: 24px; font-size: 14px; font-family: Verdana; ">
        (1)应用程序启动时会自动去加载需要的js（如Window.js和Controls.js）以及开发时输入的Css，<font color="#ff0000" 
            style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">您不需要在Desktop.htm的&lt;head&gt;中添加引用，Desktop.htm中只需引用Core.js(或其他你需要的JS，如jQuery);</font></p>
    <p style="margin-top: 6px; margin-right: auto; margin-bottom: 6px; margin-left: auto; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; text-indent: 0px; line-height: 24px; font-size: 14px; font-family: Verdana; ">
        <font color="#000000" 
            style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">
        (2)开发时首页为Developer.htm，发布时首页为index.htm。</font></p>
    </span></span>

</body>
</html>
